package com.swsc.solarverse.service.forward;

import com.swsc.solarverse.common.mybatis.MybatisService;
import com.swsc.solarverse.dao.entity.forward.ForwardStringLeDiagnoseRecordDO;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author AutoGenerator
 * @since 2024-05-08
 */
public interface IForwardStringLeDiagnoseRecordService extends MybatisService<ForwardStringLeDiagnoseRecordDO> {
    LocalDateTime maxDiagnoseTime(Integer organNo);
    LocalDateTime maxDiagnoseTimeYesterday(Integer organNo);
    LocalDateTime maxHisDiagnoseTime(Integer organNo);
    int insertIgnoreBatch(List<ForwardStringLeDiagnoseRecordDO> list);
    int insertIgnoreBatchYesterday(List<ForwardStringLeDiagnoseRecordDO> list);

    int deleteHisByDataTime(String diagnoseTime);

    int backupDiagnoseRecord();
    int backupDiagnoseRecordByTimeRange(LocalDateTime beginTime, LocalDateTime endTime);

    List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordHisResult(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime);
    List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordYesterday(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime);
    List<ForwardStringLeDiagnoseRecordDO> diagnoseRecordYesterdayLow(Integer tenantNo, Integer organNo, LocalDateTime diagnoseTime);

    LocalDateTime maxDiagnoseTimeByRange(Integer organNo,LocalDateTime diagnoseTimeGe, LocalDateTime diagnoseTimeLt);

    LocalDateTime minDiagnoseTimeByRange(Integer organNo,LocalDateTime diagnoseTimeGe, LocalDateTime diagnoseTimeLt);

}
